package org.example.admin.dao;


import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 小杰_cc
 * @version 1.0
 */
public interface RoleMenuDao {

    int saveRoleAuthority(@Param("id") Long id, @Param("permissionId") List<Long> permissionId);

    List<Long> getAuthorityByRoleId(@Param("id") Long id);

    void deleteByRoleId(@Param("ids") List<Long> ids);

    void deleteByMenuId(@Param("ids") List<Long> ids);
}
